#!/bin/bash
#Use nice so that Sinalgo doesn't eat up all the CPU time

# Three options of energy consumption models: E=<Option> This is mandatory 
# InfinitePowerSupply (equivalent to the default behavior in Sinalgo)
# TxRxConsumptionModel - a node only spends energy to send or receive a message
# RealisticConsumptionModel - a node spends energy to send and receive messages, remain idle and stand-by
# Note: all nodes start with energy level = 1

# The choices for localization algorithms as of now are RPE and DPE. You can also ommit it and the real localization will be used.

nice -19 ./sinalgo -project ufam -gen 5 ufam:OGDCNode Random C=UDG E=RealisticConsumptionModel -overwrite dimensions=2 dimX=50 dimY=50 dimZ=2 UDG/rMax=100 Localization/Algorithm/name=DPE RPE/Beacons/percentage=0.25 RPE/MinReferences/number=4 RPE/MaxReferences/number=10 RPE/MaxResidual/number=0.1 Noise/Mean/percentage=0.001 Noise/Variance/percentage=0.01 EnergyConsumption/joulesPerByteRx=0 EnergyConsumption/joulesPerByteTx=0.0002 EnergyConsumption/joulesEnabled=0.0001 EnergyConsumption/joulesStandby=0.000001 sensorRange=10 Target/paintTrace=true RandomWayPoint/Speed/Distribution=Gaussian RandomWayPoint/WaitingTime/Distribution=Gaussian randomwaypoint/speed/mean=20 randomwaypoint/speed/variance=0 randomwaypoint/waitingtime/mean=0 randomwaypoint/waitingtime/variance=0 logToTimeDirectory=true tracking/targetenabled=true DPE/BeaconsStructureDistanceFromCentralPoint/number=5 DensityControl/RoundLength=7500 simulationLength=10000 target/MobilityModel=projects.defaultProject.models.mobilityModels.CorrelatedRandomWalk

